{template "content","header"}
<div class="picArea" style="text-align:center;">
    	<center>
            <div class="pics">
                <img src="{XYHB_PATH}images/mes.jpg" width="1300" height="400"/>
            </div>
        </center>
</div>
    
 <div class="main" style="float:left;">
    	<center>
    	<div class="mainbody">
        	<div id="leftBar" class="leftBar">
            	<ul id="leftBarUl">
                    <li class="leftBarTitle">
                    	
                    </li>
                	<li>
                    	<h1>
                    		<a href="{siteurl($siteid)}" title="网站首页">网站首页</a>
                        </h1>
                    </li>
                    {pc:content action="category" catid="1" num="25" siteid="$siteid" order="listorder ASC"}
                    {loop $data $r}
                         <li>
                            <h1>
                                <a href="{$r[url]}">{$r[catname]}</a>
                            </h1>
                        </li>
                    {/loop}
                    {/pc}
                </ul><img src="{XYHB_PATH}images/hot_tel.jpg" />
            </div>
            
        	<div id="mainright" class="mainright">
            	<div class="title">
                	<h1>当前位置:<a href="{siteurl($siteid)}">首页</a>><a>在线留言</a></h1>
                </div>
                <form method="post" action="?m=mes&a=mes_sub" onsubmit="return check_mes();">
            	<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table_add">
                    <tr>
                        <td class="lefttitle">
                            怎么称呼您：
                        </td>
                        <td>
                            <input name="name" type="text" maxlength="10" id="name" class="texbox" />
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttitle">
                            性别：
                        </td>
                        <td>
                            <input name="sex" id="sex" type="radio" value='1' checked="checked" />先生<input type="radio" name="sex" id="sex" value='0' />女士
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttitle">
                            电话：
                        </td>
                        <td>
                            <input name="tel" type="text" maxlength="15" id="tel" class="texbox" />
                        </td>
                    </tr>
                     <tr>
                        <td class="lefttitle">
                            邮箱：
                        </td>
                        <td>
                            <input name="mail" type="text" maxlength="15" id="mail" class="texbox" />
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttitle">
                            主题：
                        </td>
                        <td>
                            <input name="title" type="text" maxlength="40" id="title" class="texbox" style="width:450px;" />
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttitle">
                            内容：
                        </td>
                        <td>
                            <textarea name="content" rows="4" cols="20" id="content" class="texboxarea" style="width:450px;"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td class="lefttitle">&nbsp;
                            
                        </td>
                        <td>
                            <input type="submit"  value="提交" id="Button" class="bt_Submit" />
                        </td>
                    </tr>
                </table>
                </form>
				<div class="MessagesList">
                
               {pc:get sql="SELECT * FROM mes where show_mes =1 ORDER BY mesid DESC" cache="100"  return="data"} 
                    <table width="90%" cellpadding="0" cellspacing="1" border="0">
                    {loop $data $r}
                        <tr>
                            <td>
                                用户：{$r[name]}
                                {php if(1==$r['sex']) echo '先生'; else echo '女士'}
                            </td>
                            <td>
                                 留言时间：{php echo date("Y-m-d H:i:s",$r['time'])}
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="background-color: #FFe;">
                                {$r['content']}
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>回复人：{$r['re_name']}</b>
                            </td>
                            <td>
                                <b>回复时间：{php echo date("Y-m-d H:i:s",$r['re_time'])}</b>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="background-color: #FFe;">
                               	{$r['re_content']}
                            </td>
                        </tr>
                         <tr>
                            <td colspan="2">&nbsp;</td>
                        </tr>
                        <tr>
                     {/loop} 
                    </table>
               {/pc}
				</div>
            </div>
        </div>
        </center>
    </div>
{template "content","footer"}